/*
 * =====================================================================================
 *
 *       Filename:  LiSiObserver.cpp
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/04/2022 11:06:56 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include "LiSiObserver.h"
#include <iostream>
#include "Log.h"

static const string TAG = "LiSiObserver";

using std::cout;
using std::endl;
using std::string;
LiSiObserver::LiSiObserver(void): IObserver("李斯") {
}

LiSiObserver::~LiSiObserver(void) {
}

void LiSiObserver::Update(string context) {
    LogI("%s", "李斯：我观察到韩非子活动，我要更衣， 我要上朝...");
    this->ReportToQinShiHuang(context);
}

void LiSiObserver::ReportToQinShiHuang(string report) {
    LogI("%s:%s", "李斯：报告，秦老板！韩非子有活动了", report.c_str());
}

string LiSiObserver::GetName() {
    return m_name;
}
